/**
* Pick a random name in the temp zone and store a file to it.
- * Returns a FileRepoStatus object with the file Virtual URL in the value,
+ * Returns a Status object with the file Virtual URL in the value,
* file can later be disposed using FileRepo::freeTemp().
*
* @param string $originalName The base name of the file as specified
* Copy or move a file either from a storage path, virtual URL,
* or file system path, into this repository at the specified destination location.
*
- * Returns a FileRepoStatus object. On success, the value contains "new" or
+ * Returns a Status object. On success, the value contains "new" or
* "archived", to indicate whether the file was new with that name.
*
* Options to $options include:
/**
* Move or copy a file to its public location. If a file exists at the
- * destination, move it to an archive. Returns a FileRepoStatus object with
+ * destination, move it to an archive. Returns a Status object with
* the archive name in the "value" member on success.
*
* The archive name should be passed through to recordUpload for database
/**
* Move or copy a file to its public location. If a file exists at the
- * destination, move it to an archive. Returns a FileRepoStatus object with
+ * destination, move it to an archive. Returns a Status object with
* the archive name in the "value" member on success.
*
* The archive name should be passed through to recordUpload for database
}
/**
- * Move or copy a file to a specified location. Returns a FileRepoStatus
+ * Move or copy a file to a specified location. Returns a Status
* object with the archive name in the "value" member on success.
*
* The archive name should be passed through to recordUpload for database
/** @var bool Whether to suppress all suppressable fields when deleting */
private $suppress;
- /** @var FileRepoStatus */
+ /** @var Status */
private $status;
/** @var User */
}
/**
- * Verify the database updates and return a new FileRepoStatus indicating how
+ * Verify the database updates and return a new Status indicating how
* many rows would be updated.
*
* @return Status
}
/**
- * Do the database updates and return a new FileRepoStatus indicating how
+ * Do the database updates and return a new Status indicating how
* many rows where updated.
*/
protected function doDBUpdates() {
/**
* Append the final chunk and ready file for parent::performUpload()
- * @return FileRepoStatus
+ * @return Status
*/
public function concatenateChunks() {
$chunkIndex = $this->getChunkIndex();
*
* @param string $chunkPath
* @throws UploadChunkFileException
- * @return FileRepoStatus
+ * @return Status
*/
private function outputChunk( $chunkPath ) {
// Key is fileKey + chunk index
* @param string $originalName The title of the image
* @param string $srcPath The filepath or virtual URL
* @param int $flags Flags to pass into repo::store().
- * @return FileRepoStatus
+ * @return Status
*/
private function storeit( $originalName, $srcPath, $flags ) {
$hashPath = $this->repo->getHashPath( $originalName );